package com.zrf.springCloudTest.api.impl;

import com.zrf.springCloudTest.api.ComputeClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 客户端的断路由实现
 * @author zrf
 *         Created by zrf on 2016/8/30.
 */
@Component
public class ComputeClientHystrix implements ComputeClient{
    @Override
    public Integer add(@RequestParam("a") Integer a, @RequestParam("b") Integer b) {
        return -1;
    }
}
